<?php
namespace yunj\control\field;

class Imgs extends YunjField {

    private static $instance;

    public static function instance(){
        if (!self::$instance instanceof self){
            self::$instance = new self();
        }
        return self::$instance;
    }

    protected function defineExtraArgs(){
        return [
            'max'=>9,                                           // 限制上传数量，默认9
            'size'=>yunj_config('file.upload_img_size'),   // 限制上传图片大小，默认配置值
            'ext'=>yunj_config('file.upload_img_ext'),     // 限制上传图片后缀，默认配置值
            'disabled'=>false,                                 // 禁用
        ];
    }

}